package com.example.androidmainshixun.custom_view;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.example.androidmainshixun.R;

public class Bottom extends RelativeLayout {
    private ImageButton iv_first , iv_courses , iv_publish , iv_message , iv_mine ;
    public Bottom(Context context) {
        super(context);
        initBottomView();
    }

    public Bottom(Context context, AttributeSet attrs) {
        super(context, attrs);
        initBottomView();
    }
    @SuppressLint("WrongViewCast")
    public void initBottomView(){
        LayoutInflater.from(getContext()).inflate(R.layout.bottom_btn , this ,true);
        iv_first = findViewById(R.id.iv_first);
        iv_courses = findViewById(R.id.iv_courses );
        iv_publish = findViewById(R.id.iv_edit_publish);
        iv_message = findViewById(R.id.iv_message);
        iv_mine = findViewById(R.id.iv_mine);
    }
    public void setIv_firstClickListener(OnClickListener listener){
        iv_first.setOnClickListener(listener);
    }
}
